package com.seefly.firstmall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seefly.firstmall.entity.Brand;
import com.seefly.firstmall.entity.Carousel;
import com.seefly.firstmall.repository.BrandDao;
import com.seefly.firstmall.repository.CarouselDao;
import com.seefly.firstmall.service.IBrandService;

@Service
public class BrandServiceImpl implements IBrandService {

	@Autowired
	private BrandDao brandDao;
	
	@Autowired
	private CarouselDao carouselDao;
	
	@Override
	public List<Brand> getAllBrand() {
		
		return brandDao.getAllBrand();
	}

	@Override
	public List<Carousel> getAllCarousel() {
		return carouselDao.getAll();
	}

}
